﻿CREATE TABLE [dbo].[tblProductCost] (
    [ProductCostID] INT          IDENTITY (1, 1) NOT NULL,
    [ItemCode]      VARCHAR (16) NOT NULL,
    [Location]      CHAR (3)     NULL,
    [Cost]          MONEY        NOT NULL,
    [EffectiveDate] DATETIME     NOT NULL
);
GO
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'The actual cost for each product', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'tblProductCost';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'The product cost ID', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'tblProductCost',
	@level2type = N'COLUMN', @level2name = N'ProductCostID';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'The item code', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'tblProductCost',
	@level2type = N'COLUMN', @level2name = N'ItemCode';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'The warehouse location where the product inventory is kept', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'tblProductCost',
	@level2type = N'COLUMN', @level2name = N'Location';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Actual cost for the product', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'tblProductCost',
	@level2type = N'COLUMN', @level2name = N'Cost';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Date the item/cost combination is effective.', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'tblProductCost',
	@level2type = N'COLUMN', @level2name = N'EffectiveDate';

